<template>
  <div>
      <button @click="buy">买票</button>
 </div>
</template>

<script>
export default {
  name: '',
  data() { 
    return {

    }
  },
  created() {

  },
  methods:{
    buy() {
      localStorage.setItem('ticket', true)
    }
  },
 }
</script>

<style scoped>
</style>